package com.rabbit.mapper;

import com.rabbit.db.entity.Dict;
import com.rabbit.db.entity.DictData;
import com.rabbit.db.mapper.MyMapper;
import com.rabbit.vo.res.DictDataRes;
import com.rabbit.vo.res.DictRes;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zjw
 * @date 2022/1/20 13:36
 */
public interface DictMapper extends MyMapper<Dict> {

    /**
     * 查询符合条件的字典数据
     *
     * @return List<DictDataRes>
     */
    List<DictDataRes> queryDictData();

    /**
     * 字典列表查询
     *
     * @param dict 查询条件
     * @return List<DictRes>
     */
    List<DictRes> queryDictList(Dict dict);
}
